﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.SProjectManager.UI
{
    public partial class MainProjectManager : frmModuleBase
    {
        public MainProjectManager()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.SProjectManager; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }
        private void toolStripItemManager_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmProjectManager), sender as ToolStripMenuItem);
        }

        private void toolStripItemPPCHPO_Click(object sender, EventArgs e)
        {
            // MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmHPOReportManager), sender as ToolStripMenuItem);
        }

        private void ToolStripMenuItemHPO_QTY_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmHPOReportManager), sender as ToolStripMenuItem);
        }

        private void ToolStripMenuItemHPO_Ratio_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmHPORatioReport), sender as ToolStripMenuItem);
        }

        private void ToolStripMenuItemHPOData_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmHPOImport), sender as ToolStripMenuItem);
        }


    }
}